package com.manpower.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * MpPayStandard entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "mp_pay_standard", catalog = "manpower")
public class MpPayStandard implements java.io.Serializable {

	// Fields

	private String id;
	private String payStandardDisplayId;
	private String payStandardName;
	private Timestamp payStandardCreattime;
	private String payStandardCreatuser;
	private String payStandardReguser;
	private String payStandardRemarks;
	private Set<MpPayItem> mpPayItems = new HashSet<MpPayItem>(0);

	// Constructors

	/** default constructor */
	public MpPayStandard() {
	}

	/** minimal constructor */
	public MpPayStandard(String id) {
		this.id = id;
	}

	/** full constructor */
	public MpPayStandard(String id, String payStandardDisplayId,
			String payStandardName, Timestamp payStandardCreattime,
			String payStandardCreatuser, String payStandardReguser,
			String payStandardRemarks, Set<MpPayItem> mpPayItems) {
		this.id = id;
		this.payStandardDisplayId = payStandardDisplayId;
		this.payStandardName = payStandardName;
		this.payStandardCreattime = payStandardCreattime;
		this.payStandardCreatuser = payStandardCreatuser;
		this.payStandardReguser = payStandardReguser;
		this.payStandardRemarks = payStandardRemarks;
		this.mpPayItems = mpPayItems;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "pay_standard_display_id", length = 200)
	public String getPayStandardDisplayId() {
		return this.payStandardDisplayId;
	}

	public void setPayStandardDisplayId(String payStandardDisplayId) {
		this.payStandardDisplayId = payStandardDisplayId;
	}

	@Column(name = "pay_standard_name", length = 200)
	public String getPayStandardName() {
		return this.payStandardName;
	}

	public void setPayStandardName(String payStandardName) {
		this.payStandardName = payStandardName;
	}

	@Column(name = "pay_standard_creattime", length = 19)
	public Timestamp getPayStandardCreattime() {
		return this.payStandardCreattime;
	}

	public void setPayStandardCreattime(Timestamp payStandardCreattime) {
		this.payStandardCreattime = payStandardCreattime;
	}

	@Column(name = "pay_standard_creatuser", length = 36)
	public String getPayStandardCreatuser() {
		return this.payStandardCreatuser;
	}

	public void setPayStandardCreatuser(String payStandardCreatuser) {
		this.payStandardCreatuser = payStandardCreatuser;
	}

	@Column(name = "pay_standard_reguser", length = 36)
	public String getPayStandardReguser() {
		return this.payStandardReguser;
	}

	public void setPayStandardReguser(String payStandardReguser) {
		this.payStandardReguser = payStandardReguser;
	}

	@Column(name = "pay_standard_remarks", length = 200)
	public String getPayStandardRemarks() {
		return this.payStandardRemarks;
	}

	public void setPayStandardRemarks(String payStandardRemarks) {
		this.payStandardRemarks = payStandardRemarks;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "mpPayStandard")
	public Set<MpPayItem> getMpPayItems() {
		return this.mpPayItems;
	}

	public void setMpPayItems(Set<MpPayItem> mpPayItems) {
		this.mpPayItems = mpPayItems;
	}

}